package com.lyl.lawyer.dao;

import com.lyl.lawyer.model.dto.NewsAddDto;
import com.lyl.lawyer.model.dto.NewsFindDto;
import com.lyl.lawyer.model.dto.NewsUpdateDto;
import com.lyl.lawyer.model.entity.NewsModel;
import com.lyl.lawyer.model.entity.Page;
import com.lyl.lawyer.model.vo.NewsVo;

import java.util.List;

public interface NewsMapper {

    int add(NewsModel newsModel);
    int update(NewsModel newsModel);
    int delete(Integer id);
    NewsVo findById(Integer id);
   // NewsModel findNewest();
    List<NewsVo> findAll(NewsFindDto newsFindDto);
    int countFindAll(NewsFindDto newsFindDto);
    int updateIsHome(Integer id);
    List<NewsVo> findIsHome(Page page);
    List<NewsVo> findByType(NewsFindDto newsFindDto);


}
